package com.cskaoyan.user.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UserRegisterRequest {

    @NotNull
    @Length(min = 6)
    private String userName;
    @NotNull
    @Length(min = 6)
    private String userPwd;
    @NotNull
    @Pattern(regexp = "^[1-9][0-9]{4,}@qq.com$" ,message = "邮箱格式：位数大于4")
    private String email;
    @NotNull
    private String captcha;

}
